<template>
	<view>
		<view class="infoBg">
			<view class="card">
				<view class="" @click="openinfo('../editInfo/editInfo')">
					<i class="iconfont">&#xe623;</i>
				</view>
				<view class="info">
					<view class="head">
						<image src="../../static/logo.png" mode=""></image>
					</view>
					<view class="name">
						海绵宝宝
					</view>
					<view class="phone">
						18845785656
					</view>
				</view>
			</view>
		</view>
		<view class="bgGray">
		</view>
		<view class="plan" @click="openinfo('../myList/myList')">
			<text >
				<i class="iconfont">&#xe60f;</i>
				定制中的行程</text>
			<text>
				全部行程
				<i class="iconfont">&#xe6ab;</i>
			</text>
		</view>
		<view class="bgGray">
		</view>
		<view class="submit" @click="openinfo('../submit/submit')">
			提交新的需求
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			 openinfo(url) {
			       
			       //var newsid = e.currentTarget.dataset.newsid ;    
			       uni.navigateTo({
			           url: url,
			           success: res => {},
			           fail: () => {},
			           complete: () => {}
			       });
			   }
		}
		
	}
</script>

<style>
.infoBg{
	width: 92%;
	padding: 4%;
}
.infoBg .card{
	background: #64BE78;
	width: 100%;
	height: 400rpx;
	border-radius: 20rpx;
	position: relative;
}
.infoBg .card .iconfont{
	position: absolute;
	right: 40rpx;
	top: 40rpx;
	color: #fff;
}
.infoBg .card .info{
	margin: 0 auto;
	text-align: center;
	font-size: 36rpx;
	color: #fff;
	padding-top: 150rpx;
}
.infoBg .card .info .head{
	width: 80rpx;
	height: 80rpx;
	margin: 0 auto;
}
.infoBg .card .info .head image{
	width: 80rpx;
	height: 80rpx;
	border-radius: 50%;
}
.infoBg .card .info .name{
	font-weight: 600;
}
.infoBg .card .info .phone{
	font-size: 28rpx;
}
.bgGray{
	width: 100%;
	height: 40rpx;
	background: #EFEFF4;
}
.plan{
	width: 92%;
	padding: 4% 4%;
	display: flex;
	justify-content: space-between;
}
.plan .iconfont{
	font-size: 36rpx;
	color: #FDC12D;
	font-weight: bold;
	margin: 0 6rpx;
}
.plan text{
	margin-left: 20rpx;
	font-size: 34rpx;
}
.plan text:nth-child(2){
	color: #FDC12D;
}
.plan text:nth-child(2) .iconfont{
	font-size: 36rpx;
	color: #EDEDED;
	font-weight: 400;
}
.submit{
	width: 92%;
	margin: 4%;
	background: #40d76f;
	height: 80rpx;
	color: #fff;
	border-radius: 10rpx;
	text-align: center;
	line-height: 80rpx;
}
</style>
